package test.util;

import java.util.Enumeration;
import java.util.Map;
import java.util.Properties;

public class SystemGetenv {
    
    static void getenv(){
        for(Map.Entry<String, String> ent: System.getenv().entrySet()){
            System.out.print(ent.getKey()+", ");
            System.out.println(ent.getValue());
        }
    }
    
    static void getProperties(){
        Properties pro = System.getProperties();
        Enumeration<String> key = (Enumeration<String>)pro.propertyNames();
        while (key.hasMoreElements()) {
            String string = (String)key.nextElement();
            System.out.print(string+", ");
            System.out.println(pro.getProperty(string));
        }
    }
    
    public static void main(String[] args) {
        getProperties();
    }
}
//USERPROFILE, C:\Documents and Settings\Administrator
//PATHEXT, .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
//JAVA_HOME, C:\Java\jdk1.7.0_79
//ANDROID_SDK_HOME, D:\android\AVD
//MAVEN_HOME, D:\Java\apache-maven-3.3.9
//TEMP, C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
//COMMONPROGRAMFILES, C:\Program Files\Common Files
//HOMEDRIVE, C:
//PROCESSOR_REVISION, 3c03
//SYSTEMDRIVE, C:
//CLIENTNAME, OVERDELLWIN10
//_DFX_INSTALL_UNSIGNED_DRIVER, 1
//USERDOMAIN, OVERXPNEW
//ALLUSERSPROFILE, C:\Documents and Settings\All Users
//VS90COMNTOOLS, C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\
//PROCESSOR_IDENTIFIER, x86 Family 6 Model 60 Stepping 3, GenuineIntel
//NDK_ROOT, D:\android\android-ndk-r12b
//SESSIONNAME, RDP-Tcp#2
//UMDEV_PATH, C:\\umdev
//TMP, C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
//CLASSPATH, .;C:\Java\jdk1.7.0_79\lib\dt.jar;C:\Java\jdk1.7.0_79\lib\tools.jar;
//LOGONSERVER, \\OVERXPNEW
//PROCESSOR_ARCHITECTURE, x86
//FP_NO_HOST_CHECK, NO
//OS, Windows_NT
//PATH, C:/Java/jre7/bin/client;C:/Java/jre7/bin;C:/Java/jre7/lib/i386;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Java\jdk1.7.0_79\bin;C:\Java\jdk1.7.0_79\jre\bin;D:\Java\apache-maven-3.3.9\bin;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;D:\android\android-ndk-r12b;D:\Java\eclipse;
//HOMEPATH, \Documents and Settings\Administrator
//PROMPT, $P$G
//COMSPEC, C:\WINDOWS\system32\cmd.exe
//VS100COMNTOOLS, C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\
//PROCESSOR_LEVEL, 6
//PROGRAMFILES, C:\Program Files
//COMPUTERNAME, OVERXPNEW
//NUMBER_OF_PROCESSORS, 4
//USERNAME, Administrator
//SYSTEMROOT, C:\WINDOWS
//WINDIR, C:\WINDOWS
//APPDATA, C:\Documents and Settings\Administrator\Application Data

